-- GENERATED SPELL FOR [Amani Bear] --


function spell0_23584(pUnit, Event) --@Crunch Armor,n/a--
pUnit:FullCastSpellOnTarget(42747,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23584', 6500, 1)
end

function spell1_23584(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(42745,pUnit)
pUnit:RegisterEvent('Sorts_23584', 12251, 1)
end

function Sorts_23584(pUnit, Event)
local choix_sorts_23584 = math.random(0, 1)
if choix_sorts_23584 == 0 then
pUnit:RegisterEvent('spell0_23584', 1, 1)
end
if choix_sorts_23584 == 1 then
pUnit:RegisterEvent('spell1_23584', 1, 1)
end
end

function mob23584_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23584', math.random(1500, 3000), 1)
end

function mob23584_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23584_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23584_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23584, 1, 'mob23584_Action')
RegisterUnitEvent(23584, 2, 'mob23584_Leave')
RegisterUnitEvent(23584, 3, 'mob23584_Kill')
RegisterUnitEvent(23584, 4, 'mob23584_Die')
